<?php

Yii::setPathOfAlias('common', ROOT . DIRECTORY_SEPARATOR . 'common');
$frontendConfigDir = dirname(__FILE__);
$params = require_once($frontendConfigDir . DIRECTORY_SEPARATOR . 'params.php');

return array(
    'basePath' => dirname(__FILE__),
    'name' => 'Content',
    // preloading 'log' component
    'preload' => array('log'),
    // autoloading model and component classes
    'import' => array(
	'common.models.*',
	'common.models.product.*',
	'common.components.*',
	'common.components.helpers.*'
    ),
    // application components
    'components' => array(
	'db' => $params['db.connect'],
	'log' => array(
	    'class' => 'CLogRouter',
	    'routes' => array(
		array(
		    'class' => 'CFileLogRoute',
		    'levels' => 'error, warning',
		    'logFile' => 'cron.log',
		),
	    ),
	),
	'cache' => array(
	    'class' => 'CFileCache'
	),
	'settings' => $params['settings'],
    )
);